<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2> {$title}</h2>
    </div>
    <div ng-controller="DingjiaCtrl" ng-init="proinit()" style="font-size: 2px;">
        <form action="{:U('addprolist')}" method="post">
            <div class="cf">
                <table class="data-table table-striped" style="width: 100%">
                    <tr>
                        <th>方式</th>
                        <td>
                            <select select2 name="style" class="form-control input-2x" ng-model="product.type">
                                <option value="1">箱买斤卖</option>
                                <option value="2">箱买个卖</option>
                                <option value="3">斤买斤卖</option>
                                <option value="4">斤买个卖</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>件数：</th>
                        <td><input type="number" name="total_num" ng-model="product.total_num" class="form-control input-3x text-large"/></td>
                        <th>单件价格：</th>
                        <td><input type="number" name="num_price" ng-model="product.unit_num_price" class="form-control input-3x"/></td>
                    </tr>
                    <tr>
                        <th>总重：</th>
                        <td><input type="number" name="total_weight" ng-model="product.total_weight" class="input-3x form-control"/></td>
                        <th>单价：</th>
                        <td><input type="number" name="unit_weight_price" ng-model="product.unit_weight_price" class=" input-3x form-control"/></td>
                    </tr>
                    <tr>
                        <th>每件个数：</th>
                        <td><input type="number" name="spec_num" ng-model="product.spec_num" class="input-3x form-control"/></td>
                        <th>每件净重：</th>
                        <td><input type="number" name="spec_weight" ng-model="product.spec_weight" class="input-3x form-control"/></td>
                    </tr>
                    <tr>
                        <th>总箱费：</th>
                        <td><input type="number" name="total_box_fee" ng-model="product.total_box_fee"  class="input-3x form-control"/></td>
                        <th>单箱运费：</th>
                        <td><input type="number" name="unit_trans_fee" ng-model="product.unit_trans_fee" class="input-3x form-control"/></td>
                    </tr>
                    <tr>
                        <th>损耗：</th>
                        <td><input type="number" name="loss" ng-model="product.loss" class="input-3x form-control"/></td>
                        <th>食用率：</th>
                        <td><input type="number" name="percent" ng-model="product.percent" class="input-3x form-control"/></td>
                    </tr>
                    <tbody>
                    </tbody>
                </table>
            </div>
             <div class="col-md-12">
                    <button type="button" class="btn btn-primary" ng-click="jisuan()" >成本计s算</button>
                    <a class="btn btn-success" id="fh" onclick="javascript:history.back(-1); return false;">返 回</a>
             </div>
        </form>
    </div>
    <div class="page">
        {$_page}
    </div>

</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Dingjia/addpro')}');
        $(".time").datetimepicker({
            format: 'Y-m-d'
        });
        $("text").css("font-size",2);
    </script>
</block>
